import request from '@/utils/request'

// 查询券商账户管理列表
export function listStockaccts(query) {
  return request({
    url: '/busi/stockaccts/list',
    method: 'get',
    params: query
  })
}

// 查询券商账户管理详细
export function getStockaccts(id) {
  return request({
    url: '/busi/stockaccts/' + id,
    method: 'get'
  })
}

// 新增券商账户管理
export function addStockaccts(data) {
  return request({
    url: '/busi/stockaccts',
    method: 'post',
    data: data
  })
}

// 修改券商账户管理
export function updateStockaccts(data) {
  return request({
    url: '/busi/stockaccts',
    method: 'put',
    data: data
  })
}

// 删除券商账户管理
export function delStockaccts(id) {
  return request({
    url: '/busi/stockaccts/' + id,
    method: 'delete'
  })
}

// 导出券商账户管理
export function exportStockaccts(query) {
  return request({
    url: '/busi/stockaccts/export',
    method: 'get',
    params: query
  })
}